package com.woniuxy.light_smart.service.imp;

import com.woniuxy.light_smart.entity.Error;
import com.woniuxy.light_smart.mapper.ErrorMapper;
import com.woniuxy.light_smart.service.ErrorService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ErrorServiceImpl implements ErrorService {
    @Resource
    private ErrorMapper errorMapper;
    @Override
    public Error selectByPrimaryKey(Long id) {
        return errorMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Error record) {
        return errorMapper.updateByPrimaryKeySelective(record);
    }
}
